package com.TetrisII.views;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;

/**
 * 底层依托面板
 * 
 * @author Administrator
 *
 */
public class LowPanel extends JPanel {
	private PreviewPanel previewPanel;//预览面板
	private GoalsPanel goalsPanel;//分数面板
	private ControlPanel controlPanel;//控制显示面板

	public LowPanel(PreviewPanel previewPanel, GoalsPanel goalsPanel, ControlPanel controlPanel) {

		previewPanel = previewPanel;
		goalsPanel = goalsPanel;
		controlPanel = controlPanel;
		setBackground(Color.white);
		setSize(200, 600);
		setLayout(new BorderLayout());
		add(previewPanel, BorderLayout.NORTH);
		add(goalsPanel, BorderLayout.CENTER);
		add(controlPanel, BorderLayout.SOUTH);
		setVisible(true);
	}
}
